<?php


echo "
<form action=$_SERVER[SCRIPT_NAME] method=post>
<h2>Kangelase andmete sisestamiseks</h2>
<table border=1>
<tr>
  <td>Nimi</td>
  <td><input type=text name=caption size=50></td>
</tr>
<tr>
  <td>Klass</td>
  <td>
    <select name=klass_activation>
      <option value=0>1 klass</option>
      <option value=1>2 klass</option>
      <option value=2>3 klass</option>
     </select>
  </td>
</tr>
<tr>
  <td>Rass</td>
  <td>
    <select name=rass_activation>
      <option value=0>inimene</option>
      <option value=1>gnoom</option>
      <option value=2>elf</option>
      <option value=2>mutant</option>
     </select>
  </td>
</tr>
<tr>
  <td>Sugu</td>
  <td>Mees <input type=radio name=active value=1 checked>
      Naine <input type=radio name=active value=2 checked>
       <!-- 3 tase = deleted -->
  </td>
</tr>
<tr>
  <td>Lemmikloom kaasas</td>
  <td><input type=checkbox name=lemmik loom value=1></td>
</tr>
<tr>
  <td>Kirjeldus</td>
  <td><textarea name=content rows=15 cols=60></textarea></td>
</tr>




<tr>
  <td colspan=2><center><input type=submit name=nupp value=Sisesta></center>
  </td>
</tr>


</table>
</form>

";

print_r($_POST);


?>
